package com.bjgzy.rating.di.component;

import com.bjgzy.rating.di.module.RatingDetailModule;
import com.bjgzy.rating.mvp.contract.RatingDetailContract;
import com.bjgzy.rating.mvp.ui.fragment.RatingDetailFragment;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.di.scope.ActivityScope;

import dagger.BindsInstance;
import dagger.Component;

/**
 * @author xubo
 * @date 2018-8-7 16:51:51
 */
@ActivityScope
@Component(modules = RatingDetailModule.class, dependencies = AppComponent.class)
public interface RatingDetailComponent {

    void inject(RatingDetailFragment fragment);

    @Component.Builder
    interface Builder {
        @BindsInstance
        RatingDetailComponent.Builder view(RatingDetailContract.View view);

        RatingDetailComponent.Builder appComponent(AppComponent appComponent);

        RatingDetailComponent build();

    }
}